﻿using System.Windows;

namespace CPETwit.WPFClient
{
    /// <summary>
    /// Logique d'interaction pour App.xaml
    /// </summary>
    public partial class App : Application
    {
        public static MainWindow Window
        {
            get { return Current.MainWindow as MainWindow; }
        }

        public static bool IsInDesignMode()
        {
            return Window == null ||
                System.ComponentModel.DesignerProperties.GetIsInDesignMode(Window);
        }
    }
}
